home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_q_t / toolkit.zip / GADGETS.TBK (.txt) < prev    next >
Asymetrix ToolBook File  |  1990-03-09  |  61KB  |  733 lines

  1. System
  2. System
  3. N    D    D    >
  4. Raised Region
  5. Lowered Region
  6. Lowered Dot
  7. Raised Dot
  8. Raised Dottangle
  9. Lowered Regiongle
  10. Raised Regiongle
  11. Lowered Dotangle
  12. Lowered Edge
  13. Raised Edge
  14. Raised Edgeongle
  15. Lowered Edgeongle
  16. Graphics Stuff
  17. Name: 3D Paint Button
  18. Objects: paintObject "Down", paintObject "Up", Field "Caption Up", Field "Caption Down"
  19. Action: On buttondown, this object sinks as if it was pressed. Then on buttonUp it returns to the raised position and sends the text of field caption as a message to its parent.
  20. Buttonsseck Boxes
  21. 3D Paint Button
  22. FALSE
  23. ObjectCaption 
  24. String
  25. buttonDown
  26. buttonUp
  27. ObjectCaption
  28. buttonDown
  29. buttonUp
  30. send 
  31.  to parent of self
  32. ObjectCaption
  33. string
  34. string
  35. String
  36. ObjectCaption
  37. :PHYSSIZE
  38. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  39. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
  40. :PHYSSIZE
  41. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  42. wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwp
  43. caption up
  44. Caption
  45. caption down
  46. Caption
  47. 3D Objects Button
  48. FALSE
  49. ObjectCaption 
  50. String
  51. buttonDown
  52. buttonUp
  53. ObjectCaption
  54. buttonDown
  55. buttonUp
  56. send 
  57.  to parent of self
  58. ObjectCaption
  59. string
  60. string
  61. String
  62. Caption Up
  63. Caption Down
  64. Name: 3D Object Button
  65. Objects: group "Down", group "Up", Field "Caption Up", Field "Caption Down"
  66. Action: On buttondown, this object sinks as if it was pressed. Then on buttonUp it returns to the raised position and sends the text of field caption as a message to its parent.
  67. Segmented Digit
  68. display 
  69. ZWorkString,CurrentSegment,CurrentBit
  70. Q & " 
  71. n & " 
  72. display
  73. display
  74. show item 
  75.  of objects of self
  76. hide item 
  77.  of objects of self
  78. WorkString
  79. CurrentSegment
  80. CurrentBit
  81. string
  82. RIGHT TOP
  83. RIGHT BOT
  84. LEFT BOT
  85. LEFT TOP
  86. 10 Digit Segmented Display
  87. display 
  88. ZworkObjects,workString,currentObject,currentDigit
  89. displayDigit 
  90. FALSE
  91. "1,1,1,1,1,1,0"
  92. "0,1,1,0,0,0,0"
  93. "1,1,0,1,1,0,1"
  94. "1,1,1,1,0,0,1"
  95. "0,1,1,0,0,1,1"
  96. "1,0,1,1,0,1,1"
  97. "1,0,1,1,1,1,1"
  98. "1,1,1,0,0,0,0"
  99. "1,1,1,1,1,1,1"
  100. "1,1,1,1,0,1,1"
  101. displayDigit
  102. display
  103. display
  104. displayDigit
  105. workObjects
  106. workString
  107. currentObject
  108. currentDigit
  109. string
  110. displayDigit
  111. display
  112. 1,1,1,1,1,1,0
  113. display
  114. 0,1,1,0,0,0,0
  115. display
  116. 1,1,0,1,1,0,1
  117. display
  118. 1,1,1,1,0,0,1
  119. display
  120. 0,1,1,0,0,1,1
  121. display
  122. 1,0,1,1,0,1,1
  123. display
  124. 1,0,1,1,1,1,1
  125. display
  126. 1,1,1,0,0,0,0
  127. display
  128. 1,1,1,1,1,1,1
  129. display
  130. 1,1,1,1,0,1,1
  131. Digit
  132. Segmented Digit
  133. display 
  134. ZWorkString,CurrentSegment,CurrentBit
  135. Q & " 
  136. n & " 
  137. display
  138. display
  139. show item 
  140.  of objects of self
  141. hide item 
  142.  of objects of self
  143. WorkString
  144. CurrentSegment
  145. CurrentBit
  146. string
  147. RIGHT TOP
  148. RIGHT BOT
  149. LEFT BOT
  150. LEFT TOP
  151. Segmented Digit
  152. display 
  153. ZWorkString,CurrentSegment,CurrentBit
  154. Q & " 
  155. n & " 
  156. display
  157. display
  158. show item 
  159.  of objects of self
  160. hide item 
  161.  of objects of self
  162. WorkString
  163. CurrentSegment
  164. CurrentBit
  165. string
  166. RIGHT TOP
  167. RIGHT BOT
  168. LEFT BOT
  169. LEFT TOP
  170. Segmented Digit
  171. display 
  172. ZWorkString,CurrentSegment,CurrentBit
  173. Q & " 
  174. n & " 
  175. display
  176. display
  177. show item 
  178.  of objects of self
  179. hide item 
  180.  of objects of self
  181. WorkString
  182. CurrentSegment
  183. CurrentBit
  184. string
  185. RIGHT TOP
  186. RIGHT BOT
  187. LEFT BOT
  188. LEFT TOP
  189. Segmented Digit
  190. display 
  191. ZWorkString,CurrentSegment,CurrentBit
  192. Q & " 
  193. n & " 
  194. display
  195. display
  196. show item 
  197.  of objects of self
  198. hide item 
  199.  of objects of self
  200. WorkString
  201. CurrentSegment
  202. CurrentBit
  203. string
  204. RIGHT TOP
  205. RIGHT BOT
  206. LEFT BOT
  207. LEFT TOP
  208. Segmented Digit
  209. display 
  210. ZWorkString,CurrentSegment,CurrentBit
  211. Q & " 
  212. n & " 
  213. display
  214. display
  215. show item 
  216.  of objects of self
  217. hide item 
  218.  of objects of self
  219. WorkString
  220. CurrentSegment
  221. CurrentBit
  222. string
  223. RIGHT TOP
  224. RIGHT BOT
  225. LEFT BOT
  226. LEFT TOP
  227. Segmented Digit
  228. display 
  229. ZWorkString,CurrentSegment,CurrentBit
  230. Q & " 
  231. n & " 
  232. display
  233. display
  234. show item 
  235.  of objects of self
  236. hide item 
  237.  of objects of self
  238. WorkString
  239. CurrentSegment
  240. CurrentBit
  241. string
  242. RIGHT TOP
  243. RIGHT BOT
  244. LEFT BOT
  245. LEFT TOP
  246. Segmented Digit
  247. display 
  248. ZWorkString,CurrentSegment,CurrentBit
  249. Q & " 
  250. n & " 
  251. display
  252. display
  253. show item 
  254.  of objects of self
  255. hide item 
  256.  of objects of self
  257. WorkString
  258. CurrentSegment
  259. CurrentBit
  260. string
  261. RIGHT TOP
  262. RIGHT BOT
  263. LEFT BOT
  264. LEFT TOP
  265. Segmented Digit
  266. display 
  267. ZWorkString,CurrentSegment,CurrentBit
  268. Q & " 
  269. n & " 
  270. display
  271. display
  272. show item 
  273.  of objects of self
  274. hide item 
  275.  of objects of self
  276. WorkString
  277. CurrentSegment
  278. CurrentBit
  279. string
  280. RIGHT TOP
  281. RIGHT BOT
  282. LEFT BOT
  283. LEFT TOP
  284. Segmented Digit
  285. display 
  286. ZWorkString,CurrentSegment,CurrentBit
  287. Q & " 
  288. n & " 
  289. display
  290. display
  291. show item 
  292.  of objects of self
  293. hide item 
  294.  of objects of self
  295. WorkString
  296. CurrentSegment
  297. CurrentBit
  298. string
  299. RIGHT TOP
  300. RIGHT BOT
  301. LEFT BOT
  302. LEFT TOP
  303. Segmented Digit
  304. display 
  305. ZWorkString,CurrentSegment,CurrentBit
  306. Q & " 
  307. n & " 
  308. display
  309. display
  310. show item 
  311.  of objects of self
  312. hide item 
  313.  of objects of self
  314. WorkString
  315. CurrentSegment
  316. CurrentBit
  317. string
  318. RIGHT TOP
  319. RIGHT BOT
  320. LEFT BOT
  321. LEFT TOP
  322. display 
  323. ZworkObjects,workString,currentObject,currentDigit
  324. displayDigit 
  325. FALSE
  326. "1,1,1,1,1,1,0"
  327. "0,1,1,0,0,0,0"
  328. "1,1,0,1,1,0,1"
  329. "1,1,1,1,0,0,1"
  330. "0,1,1,0,0,1,1"
  331. "1,0,1,1,0,1,1"
  332. "1,0,1,1,1,1,1"
  333. "1,1,1,0,0,0,0"
  334. "1,1,1,1,1,1,1"
  335. "1,1,1,1,0,1,1"
  336. displayDigit
  337. display
  338. display
  339. displayDigit
  340. workObjects
  341. workString
  342. currentObject
  343. currentDigit
  344. string
  345. displayDigit
  346. display
  347. 1,1,1,1,1,1,0
  348. display
  349. 0,1,1,0,0,0,0
  350. display
  351. 1,1,0,1,1,0,1
  352. display
  353. 1,1,1,1,0,0,1
  354. display
  355. 0,1,1,0,0,1,1
  356. display
  357. 1,0,1,1,0,1,1
  358. display
  359. 1,0,1,1,1,1,1
  360. display
  361. 1,1,1,0,0,0,0
  362. display
  363. 1,1,1,1,1,1,1
  364. display
  365. 1,1,1,1,0,1,1
  366. Digit
  367. Segmented Digit
  368. display 
  369. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  370. display
  371. display
  372. WorkString
  373. CurrentSegment
  374. CurrentBit
  375. workingObjects
  376. string
  377. RIGHT TOP
  378. RIGHT BOT
  379. LEFT BOT
  380. LEFT TOP
  381. Segmented Digit
  382. display 
  383. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  384. display
  385. display
  386. WorkString
  387. CurrentSegment
  388. CurrentBit
  389. workingObjects
  390. string
  391. RIGHT TOP
  392. RIGHT BOT
  393. LEFT BOT
  394. LEFT TOP
  395. Segmented Digit
  396. display 
  397. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  398. display
  399. display
  400. WorkString
  401. CurrentSegment
  402. CurrentBit
  403. workingObjects
  404. string
  405. RIGHT TOP
  406. RIGHT BOT
  407. LEFT BOT
  408. LEFT TOP
  409. Segmented Digit
  410. display 
  411. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  412. display
  413. display
  414. WorkString
  415. CurrentSegment
  416. CurrentBit
  417. workingObjects
  418. string
  419. RIGHT TOP
  420. RIGHT BOT
  421. LEFT BOT
  422. LEFT TOP
  423. Segmented Digit
  424. display 
  425. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  426. display
  427. display
  428. WorkString
  429. CurrentSegment
  430. CurrentBit
  431. workingObjects
  432. string
  433. RIGHT TOP
  434. RIGHT BOT
  435. LEFT BOT
  436. LEFT TOP
  437. Segmented Digit
  438. display 
  439. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  440. display
  441. display
  442. WorkString
  443. CurrentSegment
  444. CurrentBit
  445. workingObjects
  446. string
  447. RIGHT TOP
  448. RIGHT BOT
  449. LEFT BOT
  450. LEFT TOP
  451. Segmented Digit
  452. display 
  453. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  454. display
  455. display
  456. WorkString
  457. CurrentSegment
  458. CurrentBit
  459. workingObjects
  460. string
  461. RIGHT TOP
  462. RIGHT BOT
  463. LEFT BOT
  464. LEFT TOP
  465. Segmented Digit
  466. display 
  467. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  468. display
  469. display
  470. WorkString
  471. CurrentSegment
  472. CurrentBit
  473. workingObjects
  474. string
  475. RIGHT TOP
  476. RIGHT BOT
  477. LEFT BOT
  478. LEFT TOP
  479. Segmented Digit
  480. display 
  481. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  482. display
  483. display
  484. WorkString
  485. CurrentSegment
  486. CurrentBit
  487. workingObjects
  488. string
  489. RIGHT TOP
  490. RIGHT BOT
  491. LEFT BOT
  492. LEFT TOP
  493. Segmented Digit
  494. display 
  495. ZWorkString,CurrentSegment,CurrentBit,workingObjects
  496. display
  497. display
  498. WorkString
  499. CurrentSegment
  500. CurrentBit
  501. workingObjects
  502. string
  503. RIGHT TOP
  504. RIGHT BOT
  505. LEFT BOT
  506. LEFT TOP
  507. Fill Radio Button
  508. ObjectChecked 
  509. value
  510. ObjectCaption 
  511. String
  512. ObjectChecked
  513. Checked
  514. ObjectChecked
  515. ObjectCaption
  516. ObjectChecked
  517. value
  518. ObjectChecked
  519. ObjectCaption
  520. string
  521. String
  522. Lowered Dot
  523. Caption
  524. Caption 1
  525. 3D Radio Button
  526. ObjectChecked 
  527. value
  528. ObjectCaption 
  529. String
  530. ObjectChecked
  531. Checked
  532. ObjectChecked
  533. ObjectCaption
  534. ObjectChecked
  535. value
  536. ObjectChecked
  537. ObjectCaption
  538. string
  539. String
  540. Raised Dot
  541. Lowered Dot
  542. Caption
  543. Caption 1
  544. Radio Buttonsoxes
  545. Action: This object has no action scripts.
  546. Properties: There are two special properties of this object. ObjectChecked   can be set or got to determine the checked stauts of this button.
  547. ObjectCaption   can be set to change the caption of this object.
  548. cts parent.
  549. p "Lowered Dot" to this objects parent.
  550. Name: 3D Radio Button
  551. Objects: group "Raised Dot", group "Lowered Dot", Field "Caption"on"
  552. Name: Fill Radio Button
  553. Objects: group "Lowered Dot", ellipse "Dot", Field "Caption"tion""
  554. checkObject 
  555. ZObjList,CurrentObj
  556. Objectchecked 
  557. buttonUp
  558. buttonUp
  559. Objectchecked
  560. Objectchecked
  561. ObjList
  562. CurrentObj
  563. checkObject
  564. Fill Radio Button
  565. ObjectChecked 
  566. value
  567. ObjectCaption 
  568. String
  569. ObjectChecked
  570. Checked
  571. ObjectChecked
  572. ObjectCaption
  573. ObjectChecked
  574. value
  575. ObjectChecked
  576. ObjectCaption
  577. string
  578. String
  579. Lowered Dot
  580. Caption
  581. Caption 1
  582. Fill Radio Button
  583. ObjectChecked 
  584. value
  585. ObjectCaption 
  586. String
  587. ObjectChecked
  588. Checked
  589. ObjectChecked
  590. ObjectCaption
  591. ObjectChecked
  592. value
  593. ObjectChecked
  594. ObjectCaption
  595. string
  596. String
  597. Lowered Dot
  598. Caption
  599. Caption 2
  600. Fill Radio Button
  601. ObjectChecked 
  602. value
  603. ObjectCaption 
  604. String
  605. ObjectChecked
  606. Checked
  607. ObjectChecked
  608. ObjectCaption
  609. ObjectChecked
  610. value
  611. ObjectChecked
  612. ObjectCaption
  613. string
  614. String
  615. Lowered Dot
  616. Caption
  617. Caption 3
  618. Objectchecked
  619. false
  620. Objectchecked
  621. false
  622. checkObject 
  623. ZObjList,CurrentObj
  624. Objectchecked 
  625. buttonUp
  626. buttonUp
  627. Objectchecked
  628. Objectchecked
  629. ObjList
  630. CurrentObj
  631. checkObject
  632. Objectchecked
  633. false
  634. ObjectChecked 
  635. value
  636. ObjectCaption 
  637. String
  638. ObjectChecked
  639. Checked
  640. ObjectChecked
  641. ObjectCaption
  642. ObjectChecked
  643. value
  644. ObjectChecked
  645. ObjectCaption
  646. string
  647. String
  648. Raised Dot
  649. Lowered Dot
  650. Caption
  651. Caption 1
  652. ObjectChecked 
  653. value
  654. ObjectCaption 
  655. String
  656. ObjectChecked
  657. Checked
  658. ObjectChecked
  659. ObjectCaption
  660. ObjectChecked
  661. value
  662. ObjectChecked
  663. ObjectCaption
  664. string
  665. String
  666. Raised Dot
  667. Lowered Dot
  668. Caption
  669. Caption 2
  670. ObjectChecked 
  671. value
  672. ObjectCaption 
  673. String
  674. ObjectChecked
  675. Checked
  676. ObjectChecked
  677. ObjectCaption
  678. ObjectChecked
  679. value
  680. ObjectChecked
  681. ObjectCaption
  682. string
  683. String
  684. Raised Dot
  685. Lowered Dot
  686. Caption
  687. Caption 3
  688. Radio Button Groups
  689. to handle buttonUp
  690. -- Init: setup local variables
  691.     set checkObject to target
  692.     set syslockscreen to true
  693.     local ObjList,CurrentObj
  694.     set ObjList to objects of self
  695. -- Set all of the radio buttons to unchecked
  696.     do
  697.         pop ObjList into CurrentObj
  698.         set Objectchecked of CurrentObj to false
  699.     until ObjList is Null
  700. -- Set the RadioButton that was pressed to 
  701. -- checked 
  702.    set Objectchecked of checkObject to true
  703.     set syslockscreen to false
  704. end buttonUp
  705. Example Script for
  706. Radio Button Groups
  707. 3D Round Check Box
  708. & " " & 
  709. buttonUp
  710. buttonUp
  711. send 
  712.  to parent of self
  713. Raised Dot
  714. Lowered Dot
  715. Caption
  716. Caption
  717. Round Check Box
  718. & " " & 
  719. buttonUp
  720. buttonUp
  721. send 
  722.  to parent of self
  723. Lowered Dot
  724. Caption
  725. Caption
  726. Name: Round Check Box
  727. Objects: group "Lowered Dot", ellipse "Dot", Field "Caption"
  728. Action: On buttonUp this object toggles the visiblility of the ellipse "Dot" and sends the text of field caption as a message along with the current visibility status of ellipse "Dot" to this objects parent.
  729. Name: 3D Round Check Box
  730. Objects: group "Raised Dot", group "Lowered Dot", Field "Caption"
  731. Action: On buttonUp this object toggles the visiblility of the group "Lowered Dot" and sends the text of field caption as a message along with the current visibility status of group "Lowered Dot" to this objects parent.
  732. Round Check Boxes
  733.